package com.liuyucheng.interview.interview202108;

import java.util.List;

/**
 * 部门接口定义
 * @author LiuYuCheng
 * @date 2021/8/16 20:58
 */
public interface DeptService {

    /**
     * 新增
     * @author LiuYuCheng
     * @date 2021/8/16 21:02
     * @param
     * @return
     */
    int addDept(Dept dept);

    int editDept(Dept dept);

    int deleteById(Long deptId);

    List<Dept> queryByCompany(Long companyId);

    List<Dept> queryByName(String deptName);

    List<User> queryEmpList(Long deptId);
}
